<template>
  <div class="my-income-layout">
    <snackbar style-color="#4A4A4A"
              back-color="#ffffff"
              status-color="#ffffff"
              rightText="搜索"
              :fixed="true">
      <template slot="slot">
        <div class="top-layout">
          <van-tabs class="tebs-layout" v-model="active" animated color="#64C367"
                    title-inactive-color="#999999"
                    title-active-color="#44C8CD"
                    line-height="0"
                    :ellipsis="false"
                    :line-width="getAdaptiveSize(50)+'px'">
            <van-tab title="全部"></van-tab>
            <van-tab title="1月"></van-tab>
            <van-tab title="2月"></van-tab>
            <van-tab title="3月"></van-tab>
            <van-tab title="4月"></van-tab>
            <van-tab title="5月"></van-tab>
            <van-tab title="6月"></van-tab>
            <van-tab title="7月"></van-tab>
            <van-tab title="8月"></van-tab>
            <van-tab title="9月"></van-tab>
            <van-tab title="10月"></van-tab>
            <van-tab title="11月"></van-tab>
            <van-tab title="12月"></van-tab>
          </van-tabs>
        </div>
      </template>
    </snackbar>
    	<div class="myincome flex-col">
    		<div class="myincome_top  flex-row">
    			<div class="top_border">
    				<span class="work1 flex-col">桂B8989</span>
    			</div>
    			<span class="work2">加盟</span>
    			<span class="work2">钩机</span>
    		</div>
    		<div class="txt1">
    			<span class="info1">月产量:</span>
    			<span class="info2">￥29575</span>
    		</div>
    		<div class="txt2">
    			<span class="info1">月燃油金额:</span>
    			<span class="info2">￥10190</span>
    		</div>
    		<div class="txt3">
    			<span class="info1">工资开支:</span>
    			<span class="info2">￥0</span>
    		</div>
    		<div class="txt2">
    			<span class="info1">保养维修:</span>
    			<span class="info2">￥200</span>
    		</div>
    		<div class="txt3">
    			<span class="info1">燃油比:</span>
    			<span class="info2">0.239</span>
    		</div>
    		<div class="txt2">
    			<span class="info1">顶班费:</span>
    			<span class="info2">￥2190</span>
    		</div>
    		<div class="txt3">
    			<span class="info1">管理费:</span>
    			<span class="info2">￥1000</span>
    		</div>
    		<div class="txt2">
    			<span class="info1">总费用:</span>
    			<span class="info2">￥22363</span>
    		</div>
    		<div class="txt3 txt4">
    			<span class="info1">月利润:</span>
    			<span class="info2">￥16560</span>
    		</div>
    	</div>
    <div class="bottom-layout">
      <span class="rests-btn">其他</span>
      <span class="add-btn">新增</span>
    </div>
  </div>

</template>

<script>
</script>

<style lang="scss" scoped>
  .my-income-layout {
    .top-layout {
      display: flex;
      flex-direction: row;
      align-items: center;
      border-bottom: 1px solid rgba(219, 219, 219, 0.5);
      width: 100vw;
      background-color: white;

      .tebs-layout {
        width: 100vw;
      }
    }

    .bottom-layout {
      position: fixed;
      bottom: 0px;
      width: 100vw;
      height: 47px;
      display: flex;
      flex-direction: row;


      .rests-btn {
        width: 121px;
        height: 47px;
        background: #FFFFFF;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        border-top: 1px solid rgba(221, 220, 220, 0.5);
        font-size: 14px;
        color: #3A3A3A;
      }

      .add-btn {
        flex: 1;
        height: 47px;
        background: linear-gradient(221deg, #7ED785 0%, #64C367 100%);
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;

        font-size: 14px;
        color: #FFFFFF;
      }
    }

  }
	.flex-col {
		display: flex;
		flex-direction: column;
	}

	.flex-row {
		display: flex;
		flex-direction: row;
	}

	// #myincome{
	// 	width: 100vw;
	// 	height: 100vh;
	// 	background-color: #F6f6f6
	// }

	.myincome {
		border-radius: 3%;
		background-color: #FFFFFF;
		height: 67%;
		width: 92%;
		margin: 0 auto;
    margin-top: 20%;
		// position: absolute;
		// top: 15%;
		// left: 5%;
	}

	.myincome_top {
		margin-top: 8%;
		margin-left: 6%;
	}
	.top_border {
		width: 30%;
		border-radius: 5%;
		background-color: #F5A623;
		text-align: center;
	}

	.work1 {
		font-size: 14px;
		color: #FFFFFF;
		/* margin-top: 2%; */
	}

	.work2 {
		margin-left: 8%;
		font-size: 14px;
		color: #F5A623;
	}

	.txt1 {
		margin-top: 10%;
		margin-left: 11%;
	}

	.txt2 {
		margin-left: 11%;
		margin-top: 5%;
	}

	.txt3 {
		margin-left: 11%;
		margin-top: 6%;
	}

	.txt4 {
		margin-bottom: 11%;
	}

	.info1 {
		font-size: 14px;
	}

	.info2 {
		font-size: 14px;
		margin-left: 4%;
	}
</style>
